package com.cdzs.twocamera.myinterface;

import io.netty.buffer.ByteBuf;

/**
 * Created by M_genius on 2018/7/13.\
 * 描述:
 */

public interface NettyListener {

    /**
     * 连接成功
     */
    byte STATUS_CONNECT_SUCCESS = 1;

    /**
     * 连接失败
     */
    byte STATUS_CONNECT_CLOSED = 0;

    /**
     * 连接错误
     */
    byte STATUS_CONNECT_ERROR = 0;


    /**
     * 当接收到系统消息
     */
    void onMessageResponse(ByteBuf byteBuf);

    /**
     * 当服务状态发生变化时触发
     */
    void onServiceStatusConnectChanged(int statusCode);
}
